// emulate server logic data wrap
const wrap = (data) => {
    if (data === undefined) {
        data = {
            code: 205,
            message: '数据不存在',
        }
    } else {
        data = {
            code: 200,
            data: data,
        }
    }
    return data
}

module.exports = {
    wrap,
}
